﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace GXJD.Wx.DBModel
{
    [Table("approvalmail")]
    public class ApprovalMail : Entity
    {
        /// <summary>
        /// 邮件的审批记录节点的待办记录
        /// </summary>
        [Column("todoid"), MaxLength(40)]
        public string ToDoId { get; set; }

        /// <summary>
        /// 邮件接收用户的ID
        /// </summary>
        [Column("userid"), MaxLength(40)]
        public string UserID { get; set; }

        /// <summary>
        /// 邮件是否发出：-1、发送失败；0、未发出；1、正在执行中；99、完成发送
        /// </summary>
        [Column("issend")]
        public int IsSend { get; set; }

        /// <summary>
        /// 邮件计划发出时间
        /// </summary>
        [Column("plandate")]
        public DateTime PlanDate { get; set; }

        /// <summary>
        /// 邮件发出时间
        /// </summary>
        [Column("sendeddate")]
        public DateTime SendedDate { get; set; }

        /// <summary>
        /// 邮件接收人，以逗号分割开
        /// </summary>
        [Column("mailto")]
        public string MailTo { get; set; }

        /// <summary>
        /// 邮件抄送接收人，以逗号分割开
        /// </summary>
        [Column("mailcc")]
        public string MailCC { get; set; }

        /// <summary>
        /// 邮件标题
        /// </summary>
        [Column("title"), MaxLength(200)]
        public string Title { get; set; }

        /// <summary>
        /// 邮件正文
        /// </summary>
        [Column("content")]
        public string Content { get; set; }
    }
}
